package com.jymj.dao;

import com.jymj.entity.YlEntity;
import com.jymj.entity.landmanage.IllegalEntity;
import com.jymj.entity.landmanage.IllegalFileEntity;
import com.jymj.entity.landmanage.IllegalHistoryCount;
import com.jymj.entity.landmanage.IllegaltjEntity;
import com.jymj.entity.zjd.ZjdCountEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Created by dl on 2019/9/25.
 */
@Mapper
public interface IllegalDao {

    YlEntity queryByPoint(Map map);

    int save(IllegalEntity illegalEntity);

    List<IllegalEntity> queryList(Map<String, Object> params);

    int updateStatus(IllegalEntity illegalEntity);

    int delete(Integer id);

    IllegalHistoryCount getIllegalHistoryCount(Map map);

    void saveFile(IllegalFileEntity illegalFileEntity);

    void updateFile(IllegalEntity illegalEntity);

    void deleteFile(String url);

    List<IllegalFileEntity> queryFileList(Integer id);

    IllegalEntity queryByYlId(Integer objectid);

    int queryTotal(Map<String, Object> params);

    List<IllegaltjEntity> queryTj(Map map);

    List<IllegalEntity> queryByLocation(String point);

    IllegalHistoryCount getTdHistoryCount(Map map);

    ZjdCountEntity queryIllCount(@Param("point") String point, @Param("type") Integer type, @Param("code") String code);

    List<IllegalFileEntity> queryFiles(Integer id);
}
